package com.tender.desensitization.filter;

import java.lang.reflect.Field;
import java.util.Collection;
import java.util.Map;
import java.util.Set;

public class CollectionFieldFilter implements FieldFilter {
    @Override
    public boolean isMatch(Field field) {
        return Collection.class.isAssignableFrom(field.getType())
                || Map.class.isAssignableFrom(field.getType())
                || Set.class.isAssignableFrom(field.getType())
                || Iterable.class.isAssignableFrom(field.getType());
    }
}